﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace System.Tests.Units
{
	[TestClass()]
	public class StringExtensionsTests
	{
		[TestMethod()]
		public void FirstCharToUpper_StringIsNull_ReturnsNull()
		{
			string test = null;
			var result = test.FirstCharToUpper();
			Assert.IsNull(result);
		}

		[TestMethod()]
		public void FirstCharToUpper_StringIsEmpty_ReturnsStringEmpty()
		{
			string test = string.Empty;
			var result = test.FirstCharToUpper();
			Assert.AreEqual(string.Empty, result);
		}

		[TestMethod()]
		public void FirstCharToUpper_CorrectInput_FirstCharIsUpper()
		{
			string test = "test";
			var result = test.FirstCharToUpper();
			Assert.AreEqual("Test", result);
		}
	}
}
